from django.contrib import admin
# Register your models here.
#注册模型类
from .models import User,Permission
admin.site.register(User)

class PermissonManager(admin.ModelAdmin):
    list_display = ["id","title","code_name","type_name"]
    list_display_links = ["id",]
    list_editable = ["title","code_name"]
    list_filter = ["type_name",]
    search_fields = ["title",]
admin.site.register(Permission,PermissonManager)
